package com.dd.machine.main.user.model;

import java.util.List;

/**
 * Created by Administrator on 2017/7/5.
 */

public class AppConfig {
    private List<AppDataVersionBean> app_data_version;
    private List<AppFixPriceBean> app_fix_price;
    private List<AppCommonConfigBean> app_common_config;
    private List<AppAdverBean> app_adver;

    public List<AppDataVersionBean> getApp_data_version() {
        return app_data_version;
    }

    public void setApp_data_version(List<AppDataVersionBean> app_data_version) {
        this.app_data_version = app_data_version;
    }

    public List<AppFixPriceBean> getApp_fix_price() {
        return app_fix_price;
    }

    public void setApp_fix_price(List<AppFixPriceBean> app_fix_price) {
        this.app_fix_price = app_fix_price;
    }

    public List<AppCommonConfigBean> getApp_common_config() {
        return app_common_config;
    }

    public void setApp_common_config(List<AppCommonConfigBean> app_common_config) {
        this.app_common_config = app_common_config;
    }

    public List<AppAdverBean> getApp_adver() {
        return app_adver;
    }

    public void setApp_adver(List<AppAdverBean> app_adver) {
        this.app_adver = app_adver;
    }

    public static class AppDataVersionBean {
        /**
         * id : 4
         * dataType : app_common_config
         * dataVersion : 1
         * disable : 0
         * createTime : 1498985629000
         * updateBy : 0
         * updateTime : 1498985629000
         */

        private int id;
        private String dataType;
        private String dataVersion;
        private int disable;
        private long createTime;
        private int updateBy;
        private long updateTime;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getDataType() {
            return dataType;
        }

        public void setDataType(String dataType) {
            this.dataType = dataType;
        }

        public String getDataVersion() {
            return dataVersion;
        }

        public void setDataVersion(String dataVersion) {
            this.dataVersion = dataVersion;
        }

        public int getDisable() {
            return disable;
        }

        public void setDisable(int disable) {
            this.disable = disable;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public int getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(int updateBy) {
            this.updateBy = updateBy;
        }

        public long getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(long updateTime) {
            this.updateTime = updateTime;
        }
    }

    public static class AppFixPriceBean {
        /**
         * id : 15
         * areaId : 370102
         * typeName : 其他（公斤）
         * parentId : 14
         * unitPrice : 0.05
         * disable : 0
         * sequence : 7
         * img : http://i1.buimg.com/598040/c642666c334f7418.png
         * createTime : 1499161074000
         * updateBy : 0
         * updateTime : 1499161074000
         */

        private int id;
        private int areaId;
        private String typeName;
        private int parentId;
        private double unitPrice;
        private int disable;
        private int sequence;
        private String img;
        private long createTime;
        private int updateBy;
        private long updateTime;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getAreaId() {
            return areaId;
        }

        public void setAreaId(int areaId) {
            this.areaId = areaId;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        public int getParentId() {
            return parentId;
        }

        public void setParentId(int parentId) {
            this.parentId = parentId;
        }

        public double getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(double unitPrice) {
            this.unitPrice = unitPrice;
        }

        public int getDisable() {
            return disable;
        }

        public void setDisable(int disable) {
            this.disable = disable;
        }

        public int getSequence() {
            return sequence;
        }

        public void setSequence(int sequence) {
            this.sequence = sequence;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public int getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(int updateBy) {
            this.updateBy = updateBy;
        }

        public long getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(long updateTime) {
            this.updateTime = updateTime;
        }
    }

    public static class AppCommonConfigBean {
        /**
         * code : adver_interval
         * content : 10
         */

        private String code;
        private String content;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }

    public static class AppAdverBean {
        /**
         * imgUrl : http://i1.buimg.com/598040/1437ed676d986236.jpg
         * sequence : 0
         * gotoUrl : null
         */

        private String imgUrl;
        private int sequence;
        private String gotoUrl;

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public int getSequence() {
            return sequence;
        }

        public void setSequence(int sequence) {
            this.sequence = sequence;
        }

        public String getGotoUrl() {
            return gotoUrl;
        }

        public void setGotoUrl(String gotoUrl) {
            this.gotoUrl = gotoUrl;
        }
    }
}
